﻿<%@ Page Language="C#" MasterPageFile="~/Areas/admin/Views/Shared/List.Master" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.SaleWeb.Admin.Achievements.ListBySalesModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%foreach (var s in Model.PagedList) {%>
    <thead>
        <tr>
            <th>
                <%=s.NickName??s.UserName %>
            </th>
        </tr>
        <tr>
            <th>
                编号
            </th>
            <th>
                日期
            </th>
            <%-- <th>
                产品类型
            </th>--%>
            <th>
                产品名称
            </th>
            <th>
                年限
            </th>
            <th>
                合同金额
            </th>
            <th>
                本期到款
            </th>
            <th>
                本期前累积到款
            </th>
            <th>
                未到款项
            </th>
            <th>
                单价
            </th>
            <th>
                折扣
            </th>
            <th>
                折标系数
            </th>
            <th>
                折标业绩
            </th>
            <%-- <th>
                操作
            </th>--%>
        </tr>
    </thead>
    <tbody>
        <%foreach (var item in s.Achievements) {%>
        <tr>
            <td>
                <%= item.Id %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.CreateDT)) %>
            </td>
            <%-- <td>
                <%=item.Category.Text %>
            </td>--%>
            <td>
                <%=item.ProductName%>
            </td>
            <td>
                <%=item.Years %>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.Amount)%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.Reached)%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.ReachedCount)%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.NoReached)%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.Price)%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.Discount.ToString("p0"))%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.SaleDiscount.ToString("p0"))%>
            </td>
            <td>
                <%=string.Format("{0:f2}",item.SaleAchievement)%>
            </td>
            <td>
                <%--  <%= Html.ActionLink("编辑", "Edit", new {  id=item.Id}) %>--%>
                <%--  |<%= Html.ActionLink("删除", "Delete", new {  id=item.CaseId}) %>--%>
            </td>
        </tr>
        <% } %>
    </tbody>
    <% } %>
</asp:Content>
<asp:Content ID="Pager" ContentPlaceHolderID="Pager" runat="server">
    <%=Html.Pager(Model) %>
</asp:Content>
